<?
  class survey_model extends add_model_module{    function return_survey($id){     return $this->db->result_array($this->db->query("SELECT * From survey_id WHERE id='$id';"));
    }

    function return_query(){     return $this->db->result_array($this->db->query("SELECT a.query,b.title_query From survey_query AS a,(SELECT title_query From survey_query WHERE id='$id' and title_query != '' )as b WHERE a.id='$id' GROUP by query"));
    }

  }
?>